<!DOCTYPE html>
<html>
<head>
<title>this is a login website</title>
<form action="index.php" method="post">
<input type="text" name="user">username
<input type="password" name="pass">password
<input type="submit">
</head>
</html>
<?php
if ($_POST["user"]=="123"){
if ($_POST["pass"]=="123"){
echo "\r\nsuccess";
}
else{
echo "\r\nwrong password";
}
}
else{
echo "\r\nwrong username";
}
?>
